package com.yxe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxe.pojo.Expense;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzq
 * @since 2022-12-09
 */
@Repository
public interface ExpenseMapper extends BaseMapper<Expense> {

    /**
     * 查询房间费用
     * @param id 房间id
     * @return 费用
     */
    Expense findByUserId(Integer id);

    /**
     * 修改余额
     * @param expense 费用对象
     */
    void updateExpense(Expense expense);

}
